<?php


class Measure extends CI_Model{
		
	public function get_measure_all(){
		$query = $this->db->get('measure');
		return $query->result_array();
	}
	
	public function get_measure($id = FALSE){
		if ($id === FALSE){
			$query = $this->db->get('measure');
			return $query->result_array();
		}

		$query = $this->db->get_where('measure', array('m_id' => $id));
		return $query->row_array();
	}
}


?>
